package com.wxmit.module.system.web.workbench;

import com.wxmit.module.system.domain.workbench.GdLiveWeather;
import com.wxmit.module.system.service.GdWeatherService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author xiongchuyun
 * @date 2022/9/7 10:16
 *
 */
@RestController
@RequestMapping("/gd/weather")
public class GdWeatherController {

    @Resource
    private GdWeatherService gdWeatherService;

    @GetMapping
    public Object getLiveWeatherByGd(){
        return gdWeatherService.getLiveWeatherByGd();
    }
}